import { createSlice } from "@reduxjs/toolkit";

const counterSlice = createSlice({
  name: "counter",
  initialState: {
    username: [],
    token: "",
  },
  reducers: {
    uslog: (action, state) => {
      action.username = state.payload.username;
      action.token = state.payload.token;
    },
  },
});
export const { uslog } = counterSlice.actions;
export default counterSlice.reducer;
